import request from '@/utils/request'

const personnel = {
  myList(params) {
    return request.get('/kpzh/personnel/myList', {params})
  },
  getList(params) {
    return request.get('/kpzh/personnel/list', {params})
  },
  add(formData) {
    return request.post('/kpzh/personnel/add', formData)
  },
  // 提交
  submit(formData) {
    return request.post('/kpzh/personnel/submit', formData)
  },
  update(formData) {
    return request.post('/kpzh/personnel/update', formData)
  },
  delete(id) {
    return request.post(`/kpzh/personnel/delete/${id}`)
  },
  detail(id) {
    return request.post(`/kpzh/personnel/detail/${id}`)
  },
//   treeSelect() {
//     return request.get('/system/orgStats/treeSelect')
//   },
}

export default personnel;
